iface_name=`cat config/lan_setup.conf | awk '{ print $2 }'`
while true; do
sleep 5
TEMP=`ifconfig $iface_name | grep "inet addr" | awk ' { print $2 } '`
LAN_IP=${TEMP:5}
echo "LAN_IF $iface_name $LAN_IP" > config/lan_setup.conf
done
